<%@page import="org.soenea.doitall.domain.model.invite.IInvite"%>
<%@page import="org.soenea.doitall.domain.model.group.IGroup"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Login User - Successful</title>
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/button.css" />
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/main.css" />
</head>
	<body>
		<h2>My Invites</h2>
		<c:forEach items="${invites}" var="invite">
		${invite.groupID.id}
		${invite.inviter.firstName} ${invite.inviter.lastName}
		<a href="${pageContext.request.contextPath}/servlet/app/acceptinvite/${invite.id}">Accept</a>
		<a href="${pageContext.request.contextPath}/servlet/app/declineinvite/${invite.id}">Decline</a>
		<br/>
		</c:forEach>
		<br/>
	</body>
</html>